# 1.以金字塔方式打印九九乘法表
#       1x1=1
#    2x1=2 2x2=4
# 3x1=3 3x2=6 3x3=9
# .....

for First_number in range(1, 10):
    print(" " * (9 - First_number) * 4, end="")  
    for Second_number in range(1, First_number + 1):
        print("{0}*{1}={2:<2}".format(Second_number, First_number, Second_number * First_number), end=" ")
    print() 